package com.zjh.workflow.flowable.service;

import com.zjh.workflow.flowable.entity.vo.FlowNodeVo;
import com.zjh.workflow.flowable.entity.vo.TaskVo;

import java.util.List;

/**
 * @author : bruce.liu
 * @projectName : flowable
 * @description: 运行时的任务service
 * @date : 2019/11/1315:05
 */
public interface IFlowableTaskService {

    /**
     * 查询待办任务列表
     *
     * @return
     */
    List<TaskVo> getApplyingTasks(String userId);

    List<TaskVo> getApplyedTasks(String userId);

    /**
     * 获取可驳回节点列表
     *
     * @param taskId            任务id
     * @param processInstanceId 流程实例id
     * @return
     */
    List<FlowNodeVo> getBackNodesByProcessInstanceId(String processInstanceId, String taskId);
}
